Detecting and Removing Dead Codeusing

نویسندگان

  • Ferrrucio Damiani
  • Ferruccio Damiani
چکیده

In this paper we extend, by allowing rank 2 intersection types, the type assignment system for the detection and elimination of dead code in typed functional programs presented by Coppo et al Giannini and the rst author in the Static Analysis Symposium '96. The main application of this method is the optimization of programs extracted from proofs in logical frameworks, but it could be used as well in the elimination of dead code determined by program specialization. This system rely on annotated types which allow to exploit the type structure of the language for the investigation of program properties. The detection of dead code is obtained via annotated type inference, which can be performed in a complete way, by reducing it to the solution of a system of inequalities between annotation variables. Even though the language considered in the paper is the simply typed-calculus with cartesian product, if-then-else, xpoint, and arithmetic constants we can generalize our approach to polymor-phic languages like Miranda, Haskell, and CAML. R esum e Dans ce papier nous etendons, en permettant des types intersections de rang 2, un syst eme d'inf erence de types pour la d etection et l' elimination du code mort dans les programmes fonctionnels typ es pr esent e par Coppo et al dans le Static Analysis Symposium '96. La principale application de cette m ethode est l'optimisation de programmes extraits de preuves, mais il peut aussi bien ^ etre utilis e pour l' elimination du code mort produit par la sp ecialisation de programmes. Ce syst eme repose sur des types annot es qui permettent d'exploiter la structure des types du langage pour trouver des propri et es sur un programme. La d etection du code mort est obtenue via un syst eme d'inf erence de types. L'inf erence peut ^ etre r ealis e en r eduisant le probl eme a la solution d'un sys-t eme d'in egalit es entre les variables d'annotations. Bien que le langage consid er e soit le-calcul simplement typ e etendu par le produit cart esien, le if-then-else, le point xe et des constantes arithm etiques, nous pouvons g en eraliser notre approche aux langages polymorphes tels que Miranda, Haskell et CAML. Abstract. In this paper we extend, by allowing rank 2 intersection types, the type assignment system for the detection and elimination of dead code in typed functional programs presented by Coppo et al …

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Africanized honey bees are efficient at detecting, uncapping and removing dead brood.

The hygienic behavior of honey bees is based on a two-step process, including uncapping and removing diseased, dead, damaged, or parasitized brood inside the cell. We evaluated during periods of 1 h the time that hygienic and non-hygienic colonies of Africanized honey bees spend to detect, uncap and remove pin-killed brood using comb inserts with transparent walls placed in observation hives. W...

متن کامل

Towards detecting redundancy in domain engineering process using first order logic rules

Software product line (SPL) is an emerging methodology for developing software products. SPL consists of two processes: domain-engineering and application-engineering. Successful software product is highly dependent on the validity of a domain engineering process. Therefore, validation is a significant process within the domain-engineering. Anomalies such as dead feature, redundancy, and wrong-...

متن کامل

Detecting and Removing Dead Code using Rank Intersection

In this paper we extend by allowing rank intersection types the type assign ment system for the detection and elimination of dead code in typed functional programs presented by Coppo et al Giannini and the rst author in the Static Analysis Symposium The main application of this method is the optimiza tion of programs extracted from proofs in logical frameworks but it could be used as well in th...

متن کامل

An Enhanced Median Filter for Removing Noise from MR Images

In this paper, a novel decision based median (DBM) filter for enhancing MR images has been proposed. The method is based on eliminating impulse noise from MR images. A median-based method to remove impulse noise from digital MR images has been developed. Each pixel is leveled from black to white like gray-level. The method is adjusted in order to decide whether the median operation can be appli...

متن کامل

Removing car shadows in video images using entropy and Euclidean distance features

Detecting car motion in video frames is one of the key subjects in computer vision society. In recent years, different approaches have been proposed to address this issue. One of the main challenges of developed image processing systems for car detection is their shadows. Car shadows change the appearance of them in a way that they might seem stitched to other neighboring cars. This study aims ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1997